package td.pt.event;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.HasHandlers;
import com.google.gwt.event.shared.HandlerRegistration;

public class VerificationOnLogoutEvent extends
		GwtEvent<VerificationOnLogoutEvent.VerificationOnLogoutHandler> {

	public static Type<VerificationOnLogoutHandler> TYPE = new Type<VerificationOnLogoutHandler>();

	public interface VerificationOnLogoutHandler extends EventHandler {
		void onVerificationOnLogout(VerificationOnLogoutEvent event);
	}

	public interface VerificationOnLogoutHasHandlers extends HasHandlers {
		HandlerRegistration addVerificationOnLogoutHandler(
				VerificationOnLogoutHandler handler);
	}

	public VerificationOnLogoutEvent() {
	}

	@Override
	protected void dispatch(VerificationOnLogoutHandler handler) {
		handler.onVerificationOnLogout(this);
	}

	@Override
	public Type<VerificationOnLogoutHandler> getAssociatedType() {
		return TYPE;
	}

	public static Type<VerificationOnLogoutHandler> getType() {
		return TYPE;
	}

	public static void fire(HasHandlers source) {
		source.fireEvent(new VerificationOnLogoutEvent());
	}
}
